#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Web_News : Business.BusinessBase<Web_News, int>
	{
		#region Fields and Properties

		private Boolean isCheck = default(Boolean);
		/// <summary>
		/// 
		/// </summary>
		public Boolean IsCheck
		{
			get { return isCheck; }
			set
			{
				if (value != isCheck)
				{
					MarkChanged("IsCheck");
					isCheck = value;
				}
			}
		}

		private String manager_Code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Manager_Code
		{
			get { return manager_Code; }
			set
			{
				if (value != manager_Code)
				{
					MarkChanged("Manager_Code");
					manager_Code = value;
				}
			}
		}

		private String module_Code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Module_Code
		{
			get { return module_Code; }
			set
			{
				if (value != module_Code)
				{
					MarkChanged("Module_Code");
					module_Code = value;
				}
			}
		}

		private DateTime news_PubDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime News_PubDate
		{
			get { return news_PubDate; }
			set
			{
				if (value != news_PubDate)
				{
					MarkChanged("News_PubDate");
					news_PubDate = value;
				}
			}
		}

		private String news_Content = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String News_Content
		{
			get { return news_Content; }
			set
			{
				if (value != news_Content)
				{
					MarkChanged("News_Content");
					news_Content = value;
				}
			}
		}

		private String news_Title = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String News_Title
		{
			get { return news_Title; }
			set
			{
				if (value != news_Title)
				{
					MarkChanged("News_Title");
					news_Title = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Web_News()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Web_News DataSelect(int id)
		{
			return Services.DALService.Web_NewsService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.Web_NewsService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.Web_NewsService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.Web_NewsService.Delete(this);
		}

		#endregion Base overrides
	}
}
